#ifndef MYVIEW_H
#define MYVIEW_H
//视图类
#include <QObject>
#include <QGraphicsView>
#include <QGraphicsScene>
#include "myitem.h"
#include <QTimer>           //定时器
#include <QTime>
#include <QCoreApplication>
#include <QEventLoop>

//导入跳转至设置界面
#include "view/setwidget.h"

class MyView : public QGraphicsView
{
    Q_OBJECT
public:
    MyView();   //默认构造函数自动调用
    void Sleep(int msec);   //延时函数
private:
    QGraphicsScene * myScene;
    MyItem *item1, *item2, *bomm, *car2;
    QTimer *timer1;         //定时器

    //设置界面
    SetWidget *s;

signals:

public slots:
    void stopTimer1();

};

#endif // MYVIEW_H
